﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XmlUtility.Model
{
    /// <summary>
    /// 目录采集规则配置
    /// </summary>
    public class GatherRuleConfig
    {
        //"Code":"News","Name":"新闻制作网","Path":"\\\\sctv.x410\\Media03\\Upload\\WMB","Target":"","Interval":10
        /// <summary>
        /// 目录类型编码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 目录类型展示名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 待采集根目录（全路径）
        /// </summary>
        public string Path { get; set; }
        /// <summary>
        /// 数据采集后迁移路径（默认为采集目录下的Temp目录）
        /// </summary>
        public string Target { get; set; }
        /// <summary>
        /// 允许采集子目录
        /// </summary>
        public bool AllowSubDirectory { get; set; } = true;
        /// <summary>
        /// 轮询间隔时长 秒
        /// </summary>
        public int Interval { get; set; } = 10;
        /// <summary>
        /// 操作优先级
        /// </summary>
        [DisplayName("优先级")]
        public int Priority { get; set; } = 10;
        /// <summary>
        /// 过期文件迁移允许
        /// </summary>
        public bool AllowExpiredTransfer { get; set; } = false;
        /// <summary>
        /// 过期时长 天  默认100天前文件即为过期
        /// </summary>
        public int ExpiredTime { get; set; } = 100;
        /// <summary>
        /// 过期文件回收根目录
        /// </summary>
        public string RecyclebinRoot { get; set; }
        /// <summary>
        /// 例外文件集 名称中含有这些字符
        /// </summary>
        public string IgnoreFiles { get; set; } = "保留,勿删";
        /// <summary>
        /// 例外目录集
        /// </summary>
        public string IgnoreDirectory { get; set; } = "保留,勿删";
        /// <summary>
        /// 可用性
        /// </summary>
        public bool BEnable { get; set; } = true;
    }
}
